package com.qqt.csr.im.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 变更敏感词启用状态
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "UpdatingSensitiveWordEnableReqVO", description = "变更敏感词启用状态")
public class UpdatingSensitiveWordEnableReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -3060545042678767026L;

    /**
     * 敏感词id
     */
    @Schema(description = "敏感词id",requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "敏感词id")
    @NotNull(message = "敏感词id不能为空")
    @RequestKeyParam
    private Long swId;

    @Schema(description = "状态：0 不启用；1 启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "状态")
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态值不合法")
    @Max(value = 1, message = "状态值不合法")
    private Integer enable;
}